import {App} from "vue";

const modules = import.meta.glob('./**/*.vue');
const components = {
  install: (app: App) => {
    for (let path in modules) {
      modules[path]().then(async (mod: any) => {
        let name = mod['default']['name']?mod['default']['name']:mod['default']['__name']
        await app.component(name, mod['default']);
      })
    }
  }
}
export default components;
